package com.hksj.dpm.mapper;

import com.hksj.base.vo.AlarmNumVO;
import com.hksj.dpm.query.DpmDailyAlarmQuery;
import com.hksj.dpm.query.DpmAlarmQuery;
import com.hksj.dpm.query.DpmSpecialityQuery;
import com.hksj.dpm.query.PressureRankQuery;
import com.hksj.dpm.vo.CurrentAlarmInfoVO;
import com.hksj.dpm.vo.DpmDailyAlarmNumVO;
import com.hksj.dpm.vo.DpmDeviceStatusVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository("dpmDeviceMapper")
public interface DpmMapper {
    AlarmNumVO getAlarmTotalNum(@Param("query") DpmAlarmQuery query);

    List<DpmDailyAlarmNumVO> listDailyAlarmNum(@Param("query") DpmDailyAlarmQuery query);

    CurrentAlarmInfoVO countAlarmNum(@Param("query") DpmSpecialityQuery query);

    List<DpmDeviceStatusVO> listDevicePressureRank(@Param("query") PressureRankQuery query);
}
